class RoutesController < ApplicationController
    def show
        case params[:v]
        when 'bicycle'
#            render(:text => Yours.route_get(params[:flat], params[:flon], params[:tlat], params[:tlon],
#                    params[:v]), :content_type => 'application/xml')
            @route = Brouter.route_get(params[:flat], params[:flon], params[:tlat], params[:tlon])
        else
            @route = Osrm.route_get(params[:flat], params[:flon], params[:tlat], params[:tlon])
        end
    end
end
